import request from '@/utils/request'

// 班级报名
export function signUp(data) {
  return request({
    url: '/order/class',
    method: 'post',
    data
  })
}

// 报名信息
export function checkEnrollInfo(data) {
  return request({
    url: '/order/list',
    method: 'post',
    data
  })
}

// 报名订单详情
export function getOrderByOid(oid) {
  return request({
    url: '/order/' + oid,
    method: 'get'
  })
}

// 订单列表
export function getOrdersList() {
  return request({
    url: '/order/list',
    method: 'get'
  })
}

// 删除订单
export function deleteOrderByOid(oid) {
  return request({
    url: '/order/' + oid,
    method: 'delete'
  })
}
